package com.ht.modules.device.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 *  仪表监测记录
 * @Author:
 * @Date: 2025-03-21
 * @Version: V1.0
 */
@Data
@TableName("sk_device_monitor_records")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class DeviceMonitorRecords {

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 设备ID
     */
    private Integer deviceId;
    private String deviceType;
    /**
     * 设备名称
     */
    @TableField(exist = false)
    private String deviceName;
    /**
     * 时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date dateTime;
    /**
     * 监测值
     */
    private java.math.BigDecimal value;
    /**
     * 系数
     */
    private java.math.BigDecimal coefficient;
    /**
     * 计算值
     */
    private java.math.BigDecimal calculatedValue;
    /**
     * 请求命令
     */
    private String requestCommand;
    /**
     * 响应命令
     */
    private String responseCommand;
    /**分区时间*/
    private String partitionDate;
    // ---------- 导入字段 ----------

}
